    var myscroll=function(B){
        var D=window.document,
            pull_down_h=H(O(B.pulldownid)),
            wrapper_h=H(O(B.outsideid)),
            scroll_obj=O(B.insideid),
            scroll_obj_h=H(scroll_obj),
            scroll_max=wrapper_h-scroll_obj_h,
            Y1=0,
            Y2=0,
            Y=0;
        function touchchange(obj){
            obj.addEventListener('touchstart',function(ev){
                this.style.transition='all 0s';
                scroll_obj=O(B.insideid),
                scroll_obj_h=H(scroll_obj),
                scroll_max=wrapper_h-scroll_obj_h,
                Y1=ev.touches[0].pageY;
                Y=F(this);
            },false);
            obj.addEventListener('touchmove',function(ev){
                var h=F(this);
                Y2=ev.touches[0].pageY;
                this.style.webkitTransform='translate3d(0,'+(Y2-Y1+Y)+'px,0)';
                if(h>55){
                    O(B.pulldownid).innerText='释放立即刷新';
                }else{
                    O(B.pulldownid).innerText='下拉刷新';
                }
                if(h<scroll_max&&scroll_obj_h>=wrapper_h){
                    O(B.pullupid).style.display='block';
                    if(h<(scroll_max-55)){
                        O(B.pullupid).innerText='释放立即加载';
                    }else{
                        O(B.pullupid).innerText='上拉加载';
                    }
                }
            },false);
            obj.addEventListener('touchend',function(ev){
                O(B.pullupid).innerText='上拉加载';
                O(B.pullupid).style.display='none';
                var h=F(this);
                if(h>0){
                    this.style.webkitTransform='translate3d(0,'+0+'px,0)';
                    console.log(Math.abs(h)/3);
                    this.style.transition='all '+Math.abs(h)/350+'s ease';
                    // setTimeout(function(h){
                    //     h.style.transition='all 0s';
                    // },2000);
                    if(h>55){
                        B.pulldown();
                    }
                }
                else if(h<scroll_max){
                    if(scroll_obj_h<=wrapper_h){
                        this.style.webkitTransform='translate3d(0,'+0+'px,0)';
                    }else{
                    this.style.webkitTransform='translate3d(0,'+(scroll_max+pull_down_h)+'px,0)';
                    if(h<(scroll_max-55)){
                        B.pullup();
                    }
                    }
                }
            },false);
        };
        touchchange(scroll_obj);
        function O(id){return D.getElementById(id);};
        function F(obj){return (new WebKitCSSMatrix(window.getComputedStyle(obj).webkitTransform)).f;};
        function H(obj){return obj.offsetHeight;};
    };